# @Time    :2025/3/25 16:57
"""
13）给定一个字典 fruit_prices = {"apple": 1.2, "banana": 0.5, "cherry": 2.5, "date": 3.0}，
编写一个程序，找出价格最高的水果及其价格
"""
fruit_prices = {"apple": 1.2, "banana": 0.5, "cherry": 2.5, "date": 3.0}
max_fruit = None
max_price = 0
for k, v in fruit_prices.items():
    if v > max_price:
        max_price = v
        max_fruit = k
print(max_fruit, max_price)
